package com.ruoyi.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.mapper.CarMapper;
import com.ruoyi.pojo.Car;
import com.ruoyi.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 33010
* @description 针对表【car】的数据库操作Service实现
* @createDate 2024-10-18 11:40:28
*/
@Service
public class CarServiceImpl extends ServiceImpl<CarMapper, Car>
    implements CarService {

    @Autowired
    private CarMapper carMapper;

    @Override
    public List<Car> carList() {
        return carMapper.carList();
    }

    @Override
    public Car getById(Long id) {
        return carMapper.getById(id);
    }

    @Override
    public void upe(Car car) {
        carMapper.upe(car);
    }
}




